package cn.kgc.car.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * 汽车类
 * 属性： 车牌号，
 * 汽车品牌，汽车使用年限，汽车租赁人名称，车租赁状态（已出租，未出租），
 * 汽车颜色，汽车租金，租出时间(date类型) 8分
 */
public class Car implements Serializable {
    private int num;    //车牌号
    private String brand;  //品牌
    private int year;   //年限
    private String name;    //租赁人名称
    private int status;     //状态(0.未出租 1.已出租)
    private String color;   //颜色
    private double price;   //租金
    private Date date;      //租出时间

    public Car(int num, String brand, String name, String color, double price, Date date) {
        this.num = num;
        this.brand = brand;
        this.name = name;
        this.color = color;
        this.price = price;
        this.date = date;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public int getYear() {
        return year;
    }

    public void setYear(int year) {
        this.year = year;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Car() {
    }

    public Car(int num, String brand, int year, String name, int status, String color, double price, Date date) {
        this.num = num;
        this.brand = brand;
        this.year = year;
        this.name = name;
        this.status = status;
        this.color = color;
        this.price = price;
        this.date = date;
    }
}
